Feature: GPIO remapping for alternative OVMS modules #1167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement an optional utilization of the OVMS firmware with other hardware modules. These modules have to be based on the same or a subset of components, but require a modification wrt the ESP32 GPIO assignment.
This is achieved by the option, to load the actual GPIO assignment from an external file in
ovms_peripherals.h
.There is no restriction on the location of the GPIO mapping file(s), but to simplify the detection of the entered file, a new folder
components/gpio_maps
has been included. This folder is added to the include path viacomponent.mk
during the build process. In addition the folder contains the documentation of the required GPIO names and functions.This PR includes corresponding GPIO mapping files for different versions of the Lilygo T-Call A7670E in the folder
components/gpio_maps
and an examplesdkconfig
in thesupport
folder.@dexterbg, there are different options, how to incorporate different hardware modules into the OVMS firmware.
Kconfig
andovms_peripherals.*
. The actual instructions, mapping and sdkconfig files could be published in a separate repo. This would separate the firmware from the specifics for a certain hardware.I am pretty ambivalent about this and could really understand, if you would prefer the second option.
I just realized, that
support/partion4M.csv
is changed by this PR as well.The version in the
master
branch has the problem, that the size of the factory partition is too small to flash the current edge version. In addition is the total size too small by 448kB.